<?php

	$subcategoryID = $_GET['id'];
	
	require_once("../php/db_settings.php");
	require_once("../php/db_functions.php");
	require_once("../php/db_noto.php");
	
	$query = "DELETE FROM subcategory WHERE id = '$subcategoryID' ";
	do_query($query);
	
	$query = "DELETE FROM subcat_lang WHERE subcategory_id = '$subcategoryID' ";
	do_query($query);
	
	header("Location: subcategory_list.php");
?>